package com.boarsoft.boar.config.demo.controller;

import com.boarsoft.boar.config.demo.dataobject.People;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class ConfigDemoController {
    private static final Logger log = LoggerFactory.getLogger(ConfigDemoController.class);
    @Resource
    private People people;

    @RequestMapping(value = {"/getPeopleConfig"},
            method = {RequestMethod.POST})
    public People getPeopleConfig(){
        return people;
    }

}
